
package com.platform.modules.sys.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.platform.modules.sys.entity.SysPerProcessEntity;

/**
 * 流程权限角色Dao
 *
 * @author wangLc
 * @date 2019-07-17 11:42:20
 */
@Mapper
public interface SysPerProcessDao extends BaseMapper<SysPerProcessEntity> {

    /**
     * 根据code查询
     *
     * @param params 查询参数
     * @return List
     */
    List<SysPerProcessEntity> queryByCode(Map<String, Object> params);

    /**
     * 查询所有
     * @return List
     */
    List<SysPerProcessEntity> queryAll(@Param("params") Map<String, Object> params);
    
    
    List<String> queryPerProcessCodeByRoleId(@Param("params") Map<String, Object> params);
    
    int deleteBatch(@Param("roleIds") String[] roleIds);

}
